package cfca.seal.front.service.ws.bean;

import cfca.seal.util.StringUtil;

public class OfficeWordSealBean
{
  private String type;
  private String sealCode;
  private String sealPassword;
  private String keyword;
  private String suggestedSigner;
  private String suggestedSignerPost;
  private String suggestedSignerEmail;
  private String signingInstructions;
  private String allowComments;
  private String signatureComments;
  private String signatureText;
  private String signatureImage;

  public String getType()
  {
    return this.type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getSealCode() {
    return this.sealCode;
  }

  public void setSealCode(String sealCode) {
    this.sealCode = sealCode;
  }

  public String getSealPassword() {
    return this.sealPassword;
  }

  public void setSealPassword(String sealPassword) {
    this.sealPassword = sealPassword;
  }

  public String getKeyword() {
    return this.keyword;
  }

  public void setKeyword(String keyword) {
    this.keyword = keyword;
  }

  public String getSuggestedSigner() {
    return this.suggestedSigner;
  }

  public void setSuggestedSigner(String suggestedSigner) {
    this.suggestedSigner = suggestedSigner;
  }

  public String getSuggestedSignerPost() {
    return this.suggestedSignerPost;
  }

  public void setSuggestedSignerPost(String suggestedSignerPost) {
    this.suggestedSignerPost = suggestedSignerPost;
  }

  public String getSuggestedSignerEmail() {
    return this.suggestedSignerEmail;
  }

  public void setSuggestedSignerEmail(String suggestedSignerEmail) {
    this.suggestedSignerEmail = suggestedSignerEmail;
  }

  public String getSigningInstructions() {
    return this.signingInstructions;
  }

  public void setSigningInstructions(String signingInstructions) {
    this.signingInstructions = signingInstructions;
  }

  public String getAllowComments() {
    return this.allowComments;
  }

  public void setAllowComments(String allowComments) {
    this.allowComments = allowComments;
  }

  public String getSignatureComments() {
    return this.signatureComments;
  }

  public void setSignatureComments(String signatureComments) {
    this.signatureComments = signatureComments;
  }

  public String getSignatureText() {
    return this.signatureText;
  }

  public void setSignatureText(String signatureText) {
    this.signatureText = signatureText;
  }

  public String getSignatureImage() {
    return this.signatureImage;
  }

  public void setSignatureImage(String signatureImage) {
    this.signatureImage = signatureImage;
  }

  public OfficeWordSealBean(String officeWordSealStrategyXML) {
    this.type = StringUtil.getNodeText(officeWordSealStrategyXML, "Type");
    this.sealCode = StringUtil.getNodeText(officeWordSealStrategyXML, "SealCode");
    this.sealPassword = StringUtil.getNodeText(officeWordSealStrategyXML, "SealPassword");
    this.keyword = StringUtil.getNodeText(officeWordSealStrategyXML, "Keyword");
    this.suggestedSigner = StringUtil.getNodeText(officeWordSealStrategyXML, "SuggestedSigner");
    this.suggestedSignerPost = StringUtil.getNodeText(officeWordSealStrategyXML, "SuggestedSignerPost");
    this.suggestedSignerEmail = StringUtil.getNodeText(officeWordSealStrategyXML, "SuggestedSignerEmail");
    this.signingInstructions = StringUtil.getNodeText(officeWordSealStrategyXML, "SigningInstructions");
    this.allowComments = StringUtil.getNodeText(officeWordSealStrategyXML, "AllowComments");
    this.allowComments = (StringUtil.isEmpty(this.allowComments) ? "true" : this.allowComments);
    this.signatureComments = StringUtil.getNodeText(officeWordSealStrategyXML, "SignatureComments");
    this.signatureText = StringUtil.getNodeText(officeWordSealStrategyXML, "SignatureText");
    this.signatureImage = StringUtil.getNodeText(officeWordSealStrategyXML, "SignatureImage");
  }
}